from app import create_app

app = create_app()


# 为了方便测试，添加一个简单的路由
@app.route('/')
def index():
    return '<h1>这是一个正在施工的后端端口，看到我就说明你走错地方了。</h1>'


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, debug=True)


# from flask import send_file
# from app import create_app
# import os
#
# app = create_app()
#
# # 获取当前文件所在目录
# BASE_DIR = os.path.dirname(os.path.abspath(__file__))
#
# @app.route('/')
# def index():
#     return send_file(os.path.join(BASE_DIR, 'Hello.html'))
#
# if __name__ == '__main__':
#     app.run(host='0.0.0.0', port=5000, debug=True)
